﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
	CodeBehind="AtendimentoCliente.aspx.cs" Inherits="WebApplication1.AtendimentoCliente" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
	<table>
		<tr>
			<td>
				<asp:LinkButton runat="server" ID="lnkNOvoChamado" Text="Novo chamado" OnClick="lnkNOvoChamado_Click"></asp:LinkButton>
                <asp:HiddenField ID="hidChamado" runat="server" EnableViewState=true />
			</td>
		</tr>
		<tr>
			<td>
				<asp:Panel runat="server" ID="pnlNovo" Visible="false">
					<table>
						<tr>
							<td>
								Descrição
							</td>
							<td>
								<asp:TextBox runat="server" ID="txtDescricao"></asp:TextBox>
							</td>
						</tr>
						<tr>
							<td>
								IdPedido
							</td>
							<td>
								<asp:DropDownList ID="ddlPedidos" runat="server" 
                                    onselectedindexchanged="ddlPedidos_SelectedIndexChanged" 
                                    AutoPostBack="True">
                                </asp:DropDownList>
							</td>
						</tr>
						<tr>
							<td>
								IdProduto
							</td>
							<td>
								<asp:DropDownList ID="ddlProdutosPedido" runat="server">
                                </asp:DropDownList>
							</td>
						</tr>
						<tr>
							<td>
								Tipo de chamado
							</td>
							<td>
								<asp:DropDownList runat="server" ID="ddlTIpoChamado">
									<asp:ListItem Value="1" Text="Reclamacao">
									</asp:ListItem>
									<asp:ListItem Value="2" Text="Sugestao">
									</asp:ListItem>
									<asp:ListItem Value="3" Text="Troca">
									</asp:ListItem>
									<asp:ListItem Value="4" Text="Duvida">
									</asp:ListItem>
									<asp:ListItem Value="5" Text="Outro">
									</asp:ListItem>
								</asp:DropDownList>
							</td>
						</tr>
						
						<tr>
							<td>
								<asp:Button runat="server" ID="btnNovo" Text="Criar" OnClick="btnNovo_Click" />
							</td>
						</tr>
					</table>
				</asp:Panel>
			</td>
		</tr>
		<tr>
			<td>
				Lista de chamados:
				<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="false" >
					<Columns>
                        <asp:BoundField DataField="Id" HeaderText="Id" />
                        <asp:BoundField DataField="Data" HeaderText="Data" />
                        <asp:BoundField DataField="Descricao" HeaderText="Descricao" />
                        <asp:BoundField DataField="IdSolicitante" HeaderText="IdSolicitante" />
						<asp:TemplateField HeaderText="Op&#231;&#245;es">
							<ItemTemplate>
								<asp:LinkButton runat="server" ID="lnkAlterar" Text="Alterar" CommandArgument='<%# Eval("id") %>' onclick="lnkAlterar_Click"></asp:LinkButton>
							</ItemTemplate>
						</asp:TemplateField>
					</Columns>
				</asp:GridView>
			</td>
		</tr>
	</table>
</asp:Content>
